﻿<!DOCTYPE html>
<!--法律法规清单管理详情-->
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="/static/js/common.js"></script>

    <style>
        /*下载对齐*/
        .el-form-item__content {
            line-height: 28px !important;
        }
    </style>
</head>

<body>
    <div id="app" v-cloak class="popupW100">
        <el-form :model="Form" status-icon ref="form" label-width="100px" size="mini" label-position="right">

            <el-row>
                <!--管理制度名称-->
                <el-col :span="11">
                    <p class="main-label">
                        {{ManagementSystem.MS_InstitutionName+mark.m}}
                    </p>
                    <p class="lh35">{{Form.mS_InstitutionName}}</p>
                </el-col>
                <!--文件编号-->
                <el-col :span="11" offset="2">
                    <p class="main-label">{{ManagementSystem.MS_FileNo+mark.m}}</p>
                    <p class="lh35">{{Form.mS_FileNo}}</p>
                </el-col>
                <!--类别-->
                <el-col :span="11">
                    <p class="main-label">{{ManagementSystem.MS_Sort+mark.m}}</p>
                    <p class="lh35">{{Form.fileLeveName}}</p>
                </el-col>
                <!--实施日期-->
                <el-col :span="11" offset="2">
                    <p class="main-label">{{ManagementSystem.MS_ImplementationDate+mark.m}}</p>
                    <p class="lh35">{{Form.mark01}}</p>
                </el-col>
                <!--评审周期-->
                <el-col :span="11">
                    <p class="main-label">{{ManagementSystem.Dycle+mark.m}}</p>
                    <p class="lh35">{{Form.mS_ReviewCycle}}</p>
                </el-col>
                <!--评审日期-->
                <el-col :span="11" offset="2">
                    <p class="main-label">{{ManagementSystem.MS_ReviewDate+mark.m}}</p>
                    <p class="lh35">{{Form.mark02}}</p>
                </el-col>
                <!--修订日期-->
                <el-col :span="24">
                    <p class="main-label">{{ManagementSystem.MS_RevisionDate+mark.m}}</p>
                    <p class="lh35">{{Form.mark03}}</p>
                </el-col>

                <!--备注-->
                <el-col :span="24">
                    <p class="main-label">{{ManagementSystem.MS_Mark+mark.m}}</p>
                    <p class="lh35">{{Form.mS_Mark}}</p>
                </el-col>
                <el-col :span="11">
                    <p class="main-label">{{LawRegulationStandardSpecification.Attachment+mark.m}}</p>
                    <!--<p class="lh35">{{Form.attachment}}</p>-->
                    <!--<p class="lh35">
            <el-button style="margin: 10px 10px 10px 20px;" type="success" size="mini">
                {{fujian}}
            </el-button>
        </p>-->
                    <p class="lh35">
                        <btn-uploadfile-input v-model="Form.attachmentName"
                                              :fileid="Form.attachment" :filename="Form.attachmentName" :showdownload="true" :showupload="false"
                                              @success="attachmentHandle"></btn-uploadfile-input>
                    </p>
                </el-col>
                <!--归口部门-->
                <el-col :span="24">
                    <p class="main-label">{{LawRegulationsTable.BelongToClass+mark.m}}</p>
                    <p class="lh35">{{Form.mark04}}</p>
                </el-col>
            </el-row>
        </el-form>
        <br>
        <el-button class="fr" type="primary" @click="parent.ListItem.dialogVisible=false">{{col.btnBack}}</el-button>
        <br>
        <br>
        <br>
    </div>
    <script>
        var app = new Vue({
            el: '#app',
            data: {
                ListItem: ListItem,
                fujian: '下载',
                FileLeve: [],
                Form: {
                    id: guidEmpty,
                    FileLeve: '',
                },
                formInline: {
                    model: { FileLeve: '', },
                },
                offset: 0,
            },
            methods: {
                //解決edge下select bug
                visibleChange: function (isVisible) {
                    visibleChange(isVisible)
                },
                //通过ID赋值
                getData: function () {
                    getData(this, '/api/FL_System/get?id=' + this.id);
                },
                attachmentHandle: function (response, fileid, fileName) {

                    console.log('fileid', fileid)
                    console.log('fileName', fileName)

                    this.Form.attachment = fileid;
                    this.Form.attachmentName = fileName;

                    console.log(' this.Form.attachment', this.Form.attachment)
                    console.log(' this.Form.attachmentName', this.Form.attachmentName)

                },
            },
            mounted: function () {
               // this.FileLeve = getDicData('65');
                this.id = getUrlParam("id");
                this.getData();
                //初始化数据
              //  this.GetPageData(this.id);
            }
        })
    </script>
</body>
</html>
